package com.atkins.spring.data;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class DummyLaneData implements ILaneData {

	private Map<String, ILaneData.LaneClosure> closures;
	
	
	@Override
	public List<LaneClosure> getAllLaneClosures() {
		return new ArrayList<ILaneData.LaneClosure>(closures.values());
	}

	@Override
	public void add(LaneClosure lc) {
		closures.put(lc.getLane(), lc);
	}

	public void setClosures(Map<String, ILaneData.LaneClosure> closures) {
		this.closures = closures;
	}

}
